package payroll.trans;

import payroll.PaymentClassification;
import payroll.classification.SalariedClassification;


public class AddSalariedEmployeeTransaction extends AddEmployeeTransaction {

    private double salary;

    public AddSalariedEmployeeTransaction(int empId, String name, String address, double salary) {
        super(empId,name,address);
        this.salary = salary;
    }

    @Override
    protected PaymentClassification getPaymentClassificatio(){
        return new SalariedClassification(salary);
    }
}
